<!DOCTYPE html>
<html lang="en">
<head>
 	@include('front.layouts.head',['title'=>'My Orders | E-Shopper'])
      
</head><!--/head-->

<body>
	@include('front.layouts.header')
	<div class="container">
		<div class="row">
			<div class="col-md-3">
				@include('front.layouts.sidebar')
			</div>
			<div class="col-md-9">
				<h2 style="padding: 0;margin:0"><small>我的订单</small></h2>
				<hr>
				<table class="table">
					<thead>
						<tr>
							<th>#商品编号</th>
							<th>名称</th>
							<th>价格</th>
							<th>数量</th>
							<th>状态</th>
							<th>创建时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						@foreach ($orders as $order)
							<tr>
								<td>{{$order->product_id}}</td> 
								<td>
									<img src="{{asset('productpics').'/'.$order->pro_img}}" style="width: 30px;height:30px;">
									{{$order->pro_name}}
								</td>
								<td>
									{{$order->total}}
								</td>
								<td>{{$order->qty}}</td>
								<td>{{$order->status}}</td>
								<th>{{$order->created_at}}</th>
								<td>
									详情
								</td>
	
							</tr> 
						@endforeach
					</tbody>
				</table>
			</div>	
		</div>
	</div>
	
</body>
</html>
